package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DictDTO {

    private String id;

    @ApiModelProperty(value = "字典名称")
    @Length(max=50,message = "字典名称长度不能大于50位")
    private String name;

    @ApiModelProperty(value = "父类ID")
    private String parentId;

    @ApiModelProperty(value = "字典编号")
    private String code;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    private String remarks;
}
